-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deploy from tagged contract version #312
Conversation
When do we need to bump the contract versions in deploy? For every time the contracts change or whenever we wanna deploy? I'm wary of using the versions in a yarn workspace since it makes local development harder, but wanna understand more first. |
we need to bump the contract versions when we release a new tagged version of the contracts, which will happen each time we perform a protocol sprint + audit + on-chain upgrade. this will be approx every 6-8 weeks. right now, if we make protocol changes during a protocol sprint, then deploy a new chain, the contracts on the new chain will be un-audited & inconsistent with the other chains' contracts |
afffd8b
to
e3b2801
Compare
Instead of hardcoding it in the package.json, could the deployment script |
putting it in the package.json will also cause problems when we want to deploy test contracts that aren't tagged on EVM. e.g. testing in local env? running into rough edges on to my understanding of JS packaging |
@anna-carroll because we may need to run deployments from commits older than this, you'll need to add "check the version" to your list of manual deploy pre-flight checks 😓 |
the catch is that the deploy script itself needs to be in sync with the version of the contracts it's deploying. i we're deploying |
Okay I have created a ticket where we should discuss this: #325 Closing PR until we have aligned on an approach |
ya, for any given commit, CI should guarantee that the version of |
Motivation
Deploy repo was deploying from workspace version of the contracts, not tagged npm version. This didn't affect the source code deploys as we had frozen the contract code, but needs to be changed nevertheless.
Solution
Update deploy package to use tagged contract versions rather than workspace.
PR Checklist